package com.khh.dao;

import com.khh.entity.Student;
import com.khh.mapper.StudentMapper;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by webrx on 2017-09-11.
 */
@Data @Service
public class StudentDao implements StudentMapper{

    @Autowired  //自动装配
    private StudentMapper st;

    public List<Map<String, Object>> queryAll() {
        List<Map<String, Object>> list = st.queryAll();
        return list;
    }

    public Map<String, Object> queryById(int id) {
        return null;
    }

    public int insert(Map<String, Object> map) {
        return 0;
    }

    public int deleteById(int id) {
        return 0;
    }

    public int inserts(Student stu) {
        return 0;
    }
}
